package com.ck.strategy.controller;

import com.ck.strategy.entity.Order;
import com.ck.strategy.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    OrderService orderService;

    @GetMapping
    public void handleOrder(){
        Order order = new Order();
        order.setSource("PC");
        orderService.orderService(order);
    }
}
